<?php
class HotkeySaveAllAction extends AdminAction
{
	public function __construct()
	{
		parent::__construct();
		$this->responseType = 'json';
	}
	
	public function execute()
	{
		$ids	= $this->context->post('id');
		$op		= $this->context->post('op');
		if(empty($ids))
		{
			$this->code	= 200;
		}
		else
		{
			$hotkeyService	= new HotkeyService();
			switch($op)
			{
				case 'del':
					$hotkeyService->deleteByIds($ids);
					break;
			}
			$this->code	= 200;
		}
	}
}
